import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("appliaction.xml");
        Student student1 = ctx.getBean("student",Student.class);
        System.out.println("准备就绪");
        System.out.println(student1);
        System.out.println(student1.getName());
        ctx.close();
    }
}
